package com.example.forum.dao;

import com.example.forum.model.BuildReply;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BuildReplyMapper {
    int insert(BuildReply row);

    int insertSelective(BuildReply row);

    BuildReply selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(BuildReply row);

    int updateByPrimaryKey(BuildReply row);

    /**
     * 根据帖子回复id查询楼层帖子回复
     * */
    List<BuildReply> selectByBuildId(@Param("ar_id") Long ar_id);
}